﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace EntitySetBase
{
    public abstract class EntitySet : IEntitySet
    {
        public EntitySet()
        {
            Id = Guid.NewGuid().ToString();
        }

        [Column("id"), Key, Required, MaxLength(36), DatabaseGenerated(DatabaseGeneratedOption.None)]
        public string Id { get; set; }
    }
}
